/**
 * Created with JetBrains WebStorm.
 * User: renji
 * Date: 13/3/13
 * Time: 10:36 AM
 * To change this template use File | Settings | File Templates.
 */

describe("SeeTransactionDetailController controller", function(){

    var controller = null;

    beforeEach(function(){

        var t_alertCtrl = App.AlertController.create();
        var t_loadingCtrl = App.LoadingController.create();
        App.SeeTransactionDetailController.reopen({

            init:function(){
                this.set('controllers.alert', t_alertCtrl);
                this.set('controllers.loading', t_loadingCtrl);
            }

        });
        controller = App.SeeTransactionDetailController.create();
    });

    describe("should set SeeTransactionDetailController ",function(){

        it("in prepareController", function(){

            spyOn(App.Router,'getParameter');
            spyOn(controller, 'set');

            controller.prepareController();

            expect(App.Router.getParameter).toHaveBeenCalled();
            expect(controller.set).toHaveBeenCalled();
        });
    });


});

